package homework.four;

@Entity("Person")
public class Person {
    @Column(nullable = false, value = "学号")
    private Integer stu_id;
    @Column(nullable = true, value = "身份证")
    private String id;
    @ID
    @Column(nullable = false, length = 44, value = "姓名")
    private String name;

    public static void main(String[] args) {
        TableInfo test = new TableInfo();
        test.getTableInfo(Person.class);
        System.out.println(test.toString());
        TableSolution test1 = new TableSolution();
        System.out.println(test1.insert(Person.class));
        System.out.println(test1.delete(Person.class));
        System.out.println(test1.update(Person.class));
    }
}
